/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.insurance.cis.scos;

import java.util.Date;

/**
 *
 * @author TruongLQ
 */
public class CampaignSearchCondition {
    String campaignID, campaignName, productID;
    Integer channelID;
    Date startDate, endDate;

    public CampaignSearchCondition(String campaignID, String campaignName, 
            String productID, Integer channelID, Date startDate, Date endDate) {
        this.campaignID = campaignID;
        this.campaignName = campaignName;
        this.productID = productID;
        this.channelID = channelID;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    public String getCampaignID() {
        return campaignID;
    }

    public String getCampaignName() {
        return campaignName;
    }

    public String getProductID() {
        return productID;
    }

    public Integer getChannelID() {
        return channelID;
    }

    public Date getStartDate() {
        return startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public boolean isEmptyCondition() {
        return (campaignID ==null||campaignID.isEmpty())
                && (campaignName==null||campaignName.isEmpty())
                && (productID==null||productID.isEmpty())
                && channelID == null
                && startDate == null
                && endDate == null;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    
    
}
